@import './public.scss';
@import '../libs/swiper/swiper.min.css';
@import './publicHeader.scss';
@import './publicFooter.scss';

main{
    padding-bottom: 25px;
    background-color: #e6e6e6;
    .main{
        .link>ul>li{
            img{
                transition: transform .5s;
            }
            &:hover img{
                transform: scale(1.2);
            }
        }
    }
    >nav{
        position: sticky;
        z-index: 20;
        top:0px;
        height: 75px;
        background-color: #fff;
        box-shadow: 0 4px 10px 0 rgba(0,0,0,.1);
        ul{
            float: left;
            margin-top: 29px;
            >li{
                float: left;
                margin-right: 30px;
                &.active>a{
                    font-weight: 700;
                }
                >a{
                    font-size: 14px;
                    color: #4c4c4c;
                    &:hover{
                        color: #e7d9b7;
                        text-decoration: none;
                    }
                }
            }
        }
        form{
            position: relative;
            float: right;
            margin-top: 19px;
            height: 36px;
            width: 330px;
            border: 1px solid #ebebeb;
            border-radius: 18px;
            >#title{
                display: none;
                position: absolute;
                top: 10px;
                z-index: 999;
                width: 100%;
                border: 1px solid #ebebeb;
                border-top-style:none;
                background-color: #fff;
                border-radius:0 0 10px 10px;
                >li{
                    width: 100%;
                    box-sizing: border-box;
                    padding: 10px 15px;
                    border-top: 1px solid #ebebeb;
                    font-size: 14px;
                    color: skyblue;
                    cursor: pointer;
                    &:hover{
                        background-color: #e5e5e5;
                    }
                }
            }
            >.search-icon{
                float: left;
                width: 20px;
                height: 20px;
                cursor: pointer;
                background-image:-webkit-image-set(url() 1x,url() 2x);
                margin: 7px 10px;
            }
            >input{
                float: left;
                width: 232px;
                height: 34px;
                background-color: transparent;
                border-style: none;
                outline: none;
            }
            >.links{
                float: right;
                font-size: 12px;
                margin-left: -100%;
                margin-top: 7px;
                >a{
                    float: left;
                    padding: 0px 10px;
                    border: 1px solid;
                    border-radius: 9px;
                    margin-right: 8px;
                    &:hover{
                        text-decoration: none;
                    }
                }
            }
        }
    }
    .nav-info-warp{
        display: none;
        position: absolute;
        z-index: 21;
        width: 100%;
        top: 75px;
        max-height: 266px;
        background-color: #fff;
        padding-top: 30px;
        border-top: 1px solid rgba(0,0,0,.1);
        border-bottom: 1px solid rgba(0,0,0,.1);
        >ul{
            position: relative;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            justify-content: center;
            box-sizing: border-box;
            padding: 0 95px;
            >li{
                display: flex;
                flex-direction: column;
                flex-wrap: wrap;
                flex-grow: 1;
                >h3{
                    font-weight: normal;
                    font-size: 12px;
                    color: #999;
                }
                >ul{
                    margin-top: 10px;
                    display: flex;
                    flex-direction: column;
                    flex-wrap: wrap;
                    flex-grow: 1;
                    height: 100%;
                    overflow: hidden;
                    >li{
                        cursor: pointer;
                        font-size: 14px;
                        font-weight: 700;
                        margin-bottom: 10px;
                        display: flex;
                        align-items: center;
                        img{
                            width: 40px;
                            height: 40px;
                        }
                        >span{
                            margin-left: 10px;
                        }
                    }
                }
            }
        }
    }
    .lunbotu{
        margin: 26px 0;
        border-radius: 20px;
        overflow: hidden;
        img{
            width: 1220px;
            height: 550px;
        }
        #swiper-pagination{
            position: absolute;
            left: 50%;
            bottom: 35px;
            transform: translateX(-50%);
            >span{
                margin: 0 5px;
                width: 15px;
                height: 15px;
            }
        }
    }
    .link{
        overflow: hidden;
        margin-bottom: 20px;
        ul{
            li{
                float: left;
                width: 25%;
                height: 200px;
                box-sizing: border-box;
                border: 1px solid #dbdbdb;
                overflow: hidden;
                &:first-child{
                    border-radius: 10px 0 0 10px;
                }
                &:last-child{
                    border-radius: 0 10px 10px 0;
                }
                img{
                    height: 200px;
                    width: 300px;
                }
            }
        }
    }
    .content-list{
        >ul>li{
            margin-bottom: 25px;
            border-radius: 10px;
            overflow: hidden;
            background-color: #fff;
            border: 1px solid #dbdbdb;
            border-bottom: none;
            &:first-child{
                >.content{
                    overflow: hidden;
                    >ul{
                        position: relative;
                       >li{
                           width:300px;
                           &:last-child{
                               border-right: none;
                           }
                           img{
                               width: 250px;
                           }
                       }
                    }
                }
            }
            >.header{
                height: 60px;
                border-bottom: 1px solid #dbdbdb;
                background-color: #fafafa;
                >.title{
                    float: left;
                    font-weight: bolder;
                    font-size:18px;
                    color: #666;
                    margin-top: 22px;
                    margin-left: 25px;
                }
                >.right{
                    float: right;
                    padding-right: 10px;
                    >button{
                        width: 48px;
                        height: 48px;
                        border: none;
                        outline: none;
                        padding: 0;
                        margin-top: 6px;
                    }
                    >.disabled{
                        opacity: .5;
                        cursor: not-allowed;
                    }
                    >.goprev{
                        background: url() center center no-repeat;
                        background-size: 48px 48px;
                        transform: rotate(180deg);
                    }
                    >.gonext{
                        background: url() center center no-repeat;
                        background-size: 48px 48px;
                    }
                }
            }
            >.content{
                li{transition: background-color 1s;}
                ul{
                    li{
                        position: relative;
                        float: left;
                        box-sizing: border-box;
                        border-right: 1px solid #dbdbdb;
                        border-bottom:1px solid #dbdbdb;
                        text-align: center;
                        width:25%;
                        height: 400px;
                        padding:0 15px 28px;
                        &:hover{
                            background-color: #e5e5e5;
                        }
                        >p{
                            margin:0;
                            height: 30px;
                        }
                        .huodong{
                            position: absolute;
                            right: 0;
                            top: 0;
                            padding: 3px 8px;
                            background-color: rgba(255,0,0,.5);
                            font-size: 12px;
                        }
                        >a{
                            margin-top: 30px;
                            display: block;
                            img{
                                width: 230px;
                            }
                        }
                        >.title{
                            font-size: 14px;
                            font-weight: 700;
                            padding: 0 15px;
                            overflow: hidden;
                            white-space: nowrap;
                            text-overflow: ellipsis;
                        }
                        >p{
                            font-size: 12px;
                            padding: 0 15px;
                            overflow: hidden;
                            white-space: nowrap;
                            text-overflow: ellipsis;
                            color: #999;
                            margin-top: 18px;
                        }
                        >.price{
                            color: #d44e44;
                            font-size: 18px;
                            font-weight: bolder;
                            margin-top: 20px;
                        }
                    }
                }
            }
        }
    }
}
